package com.caac.core.config;

import java.util.List;
import java.util.Map;

import com.caac.core.dm.OrderProp;
import org.hibernate.Criteria;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright caac 2006</p>
 * <p>Company: caac</p>
 * @author <a href="mailto:project@caac.com.cn">Project Group</a>
 * @version 1.0
 */

public class OrderClazz extends Conf {
    private List orderProps;

    public OrderClazz(List orderProps) {
        this.orderProps = orderProps;
    }

    public void init(Map aliasMap) {
        for (int i = 0; i < orderProps.size(); i++) {
            OrderProp op = (OrderProp) orderProps.get(i);
            op.init(aliasMap);
        }
    }

    public void addCriteria(Criteria criteria) {
        for (int i = 0; i < orderProps.size(); i++) {
            OrderProp op = (OrderProp) orderProps.get(i);
            op.addCriteria(criteria);
        }
    }
    
}
